home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / boot / netBoot.new / h / systm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-19  |  2.2 KB  |  89 lines

  1. /*    @(#)systm.h 1.1 86/09/27 SMI; from UCB 4.35 83/05/22    */
  2.  
  3.  
  4. /*
  5.  * Random set of variables
  6.  * used by more than one
  7.  * routine.
  8.  */
  9. int    hand;            /* current index into coremap used by daemon */
  10. extern    char version[];        /* system version */
  11.  
  12. /*
  13.  * Nblkdev is the number of entries
  14.  * (rows) in the block switch. It is
  15.  * set in binit/bio.c by making
  16.  * a pass over the switch.
  17.  * Used in bounds checking on major
  18.  * device numbers.
  19.  */
  20. int    nblkdev;
  21.  
  22. /*
  23.  * Number of character switch entries.
  24.  * Set by cinit/prim.c
  25.  */
  26. int    nchrdev;
  27.  
  28. int    nswdev;            /* number of swap devices */
  29. int    mpid;            /* generic for unique process id's */
  30. char    runin;            /* scheduling flag */
  31. char    runout;            /* scheduling flag */
  32. int    runrun;            /* scheduling flag */
  33. char    kmapwnt;        /* kernel map want flag */
  34. char    curpri;            /* more scheduling */
  35.  
  36. int    maxmem;            /* actual max memory per process */
  37. int    physmem;        /* physical memory on this CPU */
  38.  
  39. int    nswap;            /* size of swap space */
  40. int    updlock;        /* lock for sync */
  41. daddr_t    rablock;        /* block to be read ahead */
  42. int    rasize;            /* size of block in rablock */
  43. extern    int intstack[];        /* stack for interrupts */
  44. dev_t    rootdev;        /* device of the root */
  45. dev_t    dumpdev;        /* device to take dumps on */
  46. long    dumplo;            /* offset into dumpdev */
  47. dev_t    swapdev;        /* swapping device */
  48. struct vnode    *swapdev_vp;    /* vnode equivalent to above */
  49. dev_t    argdev;            /* device for argument lists */
  50. struct vnode    *argdev_vp;    /* vnode equivalent to above */
  51.  
  52. #ifdef vax
  53. extern    int icode[];        /* user init code */
  54. extern    int szicode;        /* its size */
  55. #endif
  56.  
  57. daddr_t    bmap();
  58. unsigned max();
  59. unsigned min();
  60. int    memall();
  61. int    vmemall();
  62. caddr_t    wmemall();
  63. caddr_t    kmem_alloc();
  64. swblk_t    vtod();
  65. struct vnode *devtovp();
  66.  
  67. /*
  68.  * Structure of the system-entry table
  69.  */
  70. extern struct sysent
  71. {
  72.     short    sy_narg;        /* total number of arguments */
  73.     int    (*sy_call)();        /* handler */
  74. } sysent[];
  75.  
  76. int    noproc;            /* no one is running just now */
  77. char    *panicstr;
  78. int    wantin;
  79. int    boothowto;        /* reboot flags, from console subsystem */
  80. int    selwait;
  81.  
  82. extern    char vmmap[];        /* poor name! */
  83.  
  84. /* casts to keep lint happy */
  85. #define    insque(q,p)    _insque((caddr_t)q,(caddr_t)p)
  86. #define    remque(q)    _remque((caddr_t)q)
  87. #define    queue(q,p)    _queue((caddr_t)q,(caddr_t)p)
  88. #define    dequeue(q)    _dequeue((caddr_t)q)
  89.